package br.com.dev.tcc.view.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.Window;
import android.widget.TextView;
import br.com.dev.tcc.R;

public class ProgressCustomDialog extends Dialog {

	public ProgressCustomDialog(Context context) {

		super(context, R.style.DialogAppTheme);

		super.getWindow();
		super.requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.setContentView(R.layout.progress_custom_dialog);
	}

	public void setTitle(int stringResId) {

		((TextView) findViewById(R.id.title)).setText(stringResId);
	}

	public void setMessage(int stringResId) {

		((TextView) findViewById(R.id.message)).setText(stringResId);
	}
	
	public void setMessage(String message) {

		((TextView) findViewById(R.id.message)).setText(message);
	}
}
